package com.oct.ywsc.job;

import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 *
 */
@Slf4j
public class RuleManage {


    List<TransRule> transRuleList = new ArrayList<>();

    /**
     * 添加规则
     * @param transRule
     */
    public void add(TransRule transRule){
        transRuleList.add(transRule);
    }


    public void addAll(List<TransRule> transRuleList){
        this.transRuleList.addAll(transRuleList);
    }

    /**
     * 获取规则列表
     * @return
     */
    public List<TransRule> ruleList(){
        return transRuleList;
    }





}
